/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/user/reg', controller.user.reg);
  router.post('/user/login', controller.user.login);
  router.post("/upload",controller.common.upload)
  router.post("/getsize",controller.user.getsize)
  router.post("/getfile",controller.file.list)
  router.post("/shareadd",controller.share.shareadd)
  router.post("/shareread",controller.share.ckfenxiang)
  router.post("/updatefilename",controller.file.updatefilename)
  router.post("/pldelete",controller.file.pldelete)
  router.post("/delete",controller.file.delete)

  router.post("/sharelist",controller.share.sharelist)
  
};
